package com.mew.common.vo.vip;

import com.mew.common.entity.user.Profile;
import com.mew.common.rest.MewResponse;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class VipUp  extends MewResponse<VipUp> {
    //是否升级 0 不升  1升
    public boolean levelUp;

    //vip等级
    public int level;

    private long goldNumber;//筹码
    private long jewelNumber;//砖石
    private long couponNumber;//点券

    public void byProfile(Profile profile){
        goldNumber = profile.getGoldNumber();
        jewelNumber = profile.getJewelNumber();
    }

    @Override
    public void write(ByteBuf byteBuf) {

    }

    @Override
    public VipUp read(ByteBuf byteBuf) {
        return null;
    }
}
